package com.kuangstudy.io.serialization;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.ObjectInputStream;

/**
 * ClassName: Demo2
 * date: 2021/07/16 22:35:01
 *反序列化流
 * ObjectInputStream
 * object readObject() 从ObjectInputStream读取对象
 * @author zlk
 */
public class Demo2 {
    public static void main(String[] args) throws Exception {
        ObjectInputStream ois = new ObjectInputStream(new FileInputStream("e:\\person.txt"));
        Object o = ois.readObject();
        System.out.println(o);
        ois.close();

    }
}
